///中断向量表
final class Interrupt {
  ///中断号
  final int id;

  ///中断优先级
  final int proper;

  ///中断名
  final String name;

  ///中断入口
  final int addr;

  const Interrupt(
      {required this.id,
      required this.proper,
      required this.name,
      required this.addr});

  @override
  String toString() {
    return '$id:[$name][$proper]->${addr.toSigned(8)}';
  }
}
